// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// import 'babel-polyfill'
// import 'babel-polyfill'

import promise from 'es6-promise'
import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from './axios'
import store from './store'
import App from './App'
import router from './router'
import './assets/iconfont/iconfont.css'
import api from './api/index.js'
import md from 'js-md5'
import moment from 'moment'
import echarts from 'echarts'
// import $ from 'jquery'
import utils from './utils/utils.js'
import FastClick from 'fastclick'
promise.polyfill()
import './utils/flexible.js'
import * as utils1 from '@/utils/common/index'

Vue.config.productionTip = false
// Vue.prototype.$store = store;
// Vue.prototype.$ = $;
Vue.prototype.$md = md
Vue.prototype.$moment = moment
Vue.prototype.$echarts = echarts
Vue.prototype.$utils1 = utils1
Vue.use(ElementUI)
Vue.use(utils)
FastClick.attach(document.body)

// 引入mockjs
// require('./mock')

/* eslint-disable no-new */
new Vue({
  router,
  axios,
  store,
  api,
  render: h => h(App)
}).$mount('#app')
